/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-11-18     xu           the first version
 */
#ifndef BOARD_PIN_ID_H_
#define BOARD_PIN_ID_H_

/* PA0-PA7 */
#define PA_PIN_BASE 0
#define PA_PIN_ID(x) (PA_PIN_BASE + (x))
#define PA0 PA_PIN_ID(0)
#define PA1 PA_PIN_ID(1)
#define PA2 PA_PIN_ID(2)
#define PA3 PA_PIN_ID(3)
#define PA4 PA_PIN_ID(4)
#define PA5 PA_PIN_ID(5)
#define PA6 PA_PIN_ID(6)
#define PA7 PA_PIN_ID(7)

/* PB0-PB5 */
#define PB_PIN_BASE 8
#define PB_PIN_ID(x) (PB_PIN_BASE + (x))
#define PB0 PB_PIN_ID(0)
#define PB1 PB_PIN_ID(1)
#define PB2 PB_PIN_ID(2)
#define PB3 PB_PIN_ID(3)
#define PB4 PB_PIN_ID(4)
#define PB5 PB_PIN_ID(5)

/* PE0-PE7 */
#define PE_PIN_BASE 14
#define PE_PIN_ID(x) (PE_PIN_BASE + (x))
#define PE0 PE_PIN_ID(0)
#define PE1 PE_PIN_ID(1)
#define PE2 PE_PIN_ID(2)
#define PE3 PE_PIN_ID(3)
#define PE4 PE_PIN_ID(4)
#define PE5 PE_PIN_ID(5)
#define PE6 PE_PIN_ID(6)
#define PE7 PE_PIN_ID(7)

/* PF0-PF6 */
#define PF_PIN_BASE 22
#define PF_PIN_ID(x) (PF_PIN_BASE + (x))
#define PF0 PF_PIN_ID(0)
#define PF1 PF_PIN_ID(1)
#define PF2 PF_PIN_ID(2)
#define PF3 PF_PIN_ID(3)
#define PF4 PF_PIN_ID(4)
#define PF5 PF_PIN_ID(5)
#define PF6 PF_PIN_ID(6)

#endif /* BOARD_PIN_ID_H_ */
